<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>关闭广告</title>
	<style>
		.out {
			position: relative;
			width: 300px;
			height: 130px;
			border: 1px solid #bbb;
			padding: 4px;
		}
		img {
			vertical-align: middle;
		}
		button {
			background-color: rgba(102,102,102,.5);
			position: absolute;
			right: 4px;
			bottom: 4px;
		}
	</style>
</head>
<body>
	<div class="out">
		<!-- <input type="button" > -->
		<img src="game.jpg" alt="" id="img">
		<button>
			<img src="logo-ad.png" alt="">
			<img src="close.png" alt="">
		</button>
	</div>
	<script>
		var btn=document.querySelector('button');
		var out=document.querySelector('.out');
		var img=document.querySelector('#img');
		btn.onclick=function () {
			// out.innerHTML='';
			out.removeChild(img);
			out.removeChild(btn);
		}
	</script>
</body>
</html>
<!-- <div class = "out">
		<img src="game.jpg" id = "big" alt="">
		<button>
			<img src="logo-ad.png" alt="">
			<img src="close.png" alt="">
		<tton>

	</div> -->